﻿using WebSocketApi.DataValidate.Interface;

namespace WebSocketApi.DataValidate.Services
{
    /// <summary>
    /// 
    /// </summary>
    public class UserValidateService: IUserValidateService
    {

        /// <summary>
        /// 验证账号权限
        /// </summary>
        /// <returns></returns>
        public async Task<bool> ValidateUserAsync(string account)
        {
            return await Task.FromResult(true);
        }

        /// <summary>
        /// 验证账号权限
        /// </summary>
        /// <returns></returns>
        public async Task<bool> ValidateUserAsync(string account, string password)
        {
            return await Task.FromResult(true);
        }

        /// <summary>
        /// 验证消息体中的发送者是否有效
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        public async Task<bool> ValidateBodyMessageSrcAccount(string message)
        {
            return await Task.FromResult(true);
        }

        /// <summary>
        /// 验证消息体中的接收者是否有效
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        public async Task<bool> ValidateBodyMessageDstAccount(string message)
        {
            return await Task.FromResult(true);
        }

        /// <summary>
        /// 验证用户Token
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        public async Task<bool> ValidateConnTokenAsync(string token)
        {
            return await Task.FromResult(true);
        }


    }
}
